package com.hmall.common.client;

import com.hmall.common.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * TODO
 *
 * @Author whx
 * @Date 2024/11/15 19:46
 */
@FeignClient("userservice")
public interface AddressClient {

    @GetMapping("address/{id}")
    public Address findAddressById(@PathVariable("id") Long id);

}

